/*
 * @Author: shenzhiwei
 * @Date: 2022-05-04 08:24:50
 * @Company: orientsec.com.cn
 * @Description: 
 */
// window.localStorage['callAppUrl_20220504']
// 赢家APP
if(!__POWERED_BY_OEMAPP__) {
  $("#url").val("dfyj20170811://dl/wb?url=https%3A%2F%2Fm.baidu.com");
  $("#panel_onLoginEnhance").show();
  $("#panel_onReq").show();
  $("#panel_onQueryLatestLoginAccount").show();
  $("#panel_onCheckAppNotification").show();
  $("#panel_onGoToCheckAppNotification").show();
  $("#panel_onCallApp").show();
  $("#wxPay_appId").val("wxa114b49c6a552cb9");
  $("#wxPay_partnerId").val("1491050962");
}
// 章鱼APP
else {
  $("#url").val("client.html?action=ymtz^webid=2604");
  $("#panel_onLoginEnhance").hide();
  $("#panel_onReq").hide();
  $("#panel_onQueryLatestLoginAccount").hide();
  $("#panel_onCheckAppNotification").hide();
  $("#panel_onGoToCheckAppNotification").hide();
  $("#panel_onCallApp").hide();
  $("#panel_onGetOptionalStocks").hide();
  $("#panel_isCheckLogin").hide();
  $("#panel_onQueryAgeAppropriateMode").hide();
  $("#panel_onAliPay").hide();
  $("#panel_onRedirectToWeiMini").hide();
}

$("#oldVersion").on("click", function(){
  var uri = "";
  if(!__POWERED_BY_OEMAPP__) {
    uri = "https://h5itest1.dfzq.com.cn/demo-eval/window.html";
  } else {
    uri = "https://h5itest1.dfzq.com.cn/oem-app/demo.html";
  }
  fastman.onNavigateTo({
    uri : uri
  })
});

var uriStorage = window.localStorage['App_URI_20220504'];
if(uriStorage) {
  $("#uri").val("");
  $("#uri").val(uriStorage);
}

var callAppUrlStorage = window.localStorage['callAppUrl_20220531'];
if(callAppUrlStorage) {
  $("#callAppUrl").val("");
  $("#callAppUrl").val(callAppUrlStorage);
}

var dynamicLinkStorage = window.localStorage['App_DynamicLink_20230627'];
if(dynamicLinkStorage) {
  $("#url").val("");
  $("#url").val(dynamicLinkStorage);
}
